
#ifndef __ADCONV_H__
#define __ADCONV_H__

#include "define.h"


typedef struct
{
  xint8 bValid;
  xint8 bStart;
  xint8 bLost;
  xint16 position;
} position_info;



#ifdef __cplusplus
extern "C" {
#endif



void AD_Init(void);

void get_position(xint16 percent[7], position_info* pos);



#ifdef __cplusplus
}
#endif

#endif
